/* src/containers/IdentityVerify/style.css - 修复后的身份验证页面样式 */

.verify-identity-verify {
  min-height: calc(100vh - 120px); /* 减去header和footer的高度 */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  /* 移除背景，使用App的背景 */
}

.verify-container {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  width: 100%;
  padding: 40px;
  text-align: center;
}

/* 进度条 */
.verify-progress-bar {
  margin-bottom: 40px;
}

.verify-progress-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  position: relative;
}

.verify-progress-steps::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: #e0e0e0;
  z-index: 1;
}

.verify-step {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.verify-step.verify-active {
  background: #667eea !important;
  color: white !important;
}

.verify-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #666;
}

/* 内容区域 */
.verify-content {
  margin-bottom: 20px;
}

.verify-content h2 {
  color: #333;
  margin-bottom: 16px;
  font-size: 28px;
  font-weight: 600;
}

.verify-content p {
  color: #666;
  margin-bottom: 24px;
  font-size: 16px;
  line-height: 1.5;
}

/* 图标 */
.verify-icon,
.verify-success-icon,
.verify-error-icon {
  margin-bottom: 24px;
}

.verify-icon {
  color: #667eea;
}

.verify-success-icon {
  color: #4caf50;
}

.verify-error-icon {
  color: #f44336;
}

/* 说明文字 */
.verify-instructions {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
  text-align: left;
}

.verify-instructions h3 {
  color: #333;
  margin-bottom: 16px;
  font-size: 18px;
}

.verify-instructions ol {
  color: #666;
  padding-left: 20px;
}

.verify-instructions li {
  margin-bottom: 8px;
  line-height: 1.5;
}

/* 摄像头容器 */
.verify-camera-container {
  position: relative;
  margin-bottom: 32px;
  display: flex;
  justify-content: center;
}

.verify-camera-video {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 12px;
  border: 3px solid #e0e0e0;
  background: #f5f5f5;
}

.verify-face-outline {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 250px;
  border: 3px dashed #667eea;
  border-radius: 50%;
  opacity: 0.7;
  pointer-events: none;
}

.verify-camera-status {
  text-align: center;
  margin: 10px 0;
  font-size: 14px;
  color: #666;
}

/* 拍摄的照片 */
.verify-captured-photo {
  margin-bottom: 32px;
  display: flex;
  justify-content: center;
}

.verify-captured-photo img {
  max-width: 400px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 3px solid #e0e0e0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 按钮 */
.verify-action-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 8px;
  min-width: 120px;
  justify-content: center;
  background: #667eea !important; /* 强制设置默认背景 */
  color: white !important; /* 强制设置默认文字色 */
  opacity: 1 !important; /* 强制不透明 */
  visibility: visible !important; /* 强制可见 */
}

.verify-action-btn:disabled {
  opacity: 0.6 !important;
  cursor: not-allowed;
}

.verify-action-btn.verify-primary {
  background: #667eea !important;
  color: white !important;
}

.verify-action-btn.verify-primary:hover:not(:disabled) {
  background: #5a6fd8 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.verify-action-btn.verify-secondary {
  background: #f0f0f0 !important;
  color: #666 !important;
}

.verify-action-btn.verify-secondary:hover:not(:disabled) {
  background: #e0e0e0 !important;
  transform: translateY(-2px);
}

/* 按钮组 */
.verify-camera-actions,
.verify-capture-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

/* 加载动画 */
.verify-loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: verify-spin 1s linear infinite;
}

@keyframes verify-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 成功状态 */
.verify-content.verify-success {
  color: #4caf50;
}

.verify-verification-details {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  margin: 24px 0;
}

.verify-similarity-score {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
}

.verify-similarity-score .verify-score {
  font-weight: bold;
  color: #4caf50;
  font-size: 18px;
}

.verify-auto-redirect {
  margin: 24px 0;
}

.verify-loading-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.verify-loading-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #667eea;
  animation: verify-bounce 1.4s ease-in-out infinite both;
}

.verify-loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.verify-loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes verify-bounce {
  0%, 80%, 100% {
    transform: scale(0);
  } 40% {
    transform: scale(1);
  }
}

/* 错误状态 */
.verify-content.verify-error {
  color: #f44336;
}

.verify-error-message {
  background: #ffebee;
  color: #c62828;
  padding: 16px;
  border-radius: 8px;
  margin: 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  border-left: 4px solid #f44336;
}

.verify-error-suggestions {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 24px;
  margin: 24px 0;
  text-align: left;
}

.verify-error-suggestions h3 {
  color: #333;
  margin-bottom: 16px;
  font-size: 18px;
}

.verify-error-suggestions ul {
  color: #666;
  padding-left: 20px;
}

.verify-error-suggestions li {
  margin-bottom: 8px;
  line-height: 1.5;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .verify-container {
    padding: 24px;
    margin: 10px;
  }
  
  .verify-content h2 {
    font-size: 24px;
  }
  
  .verify-camera-actions,
  .verify-capture-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .verify-action-btn {
    width: 100%;
    max-width: 200px;
    margin: 8px 0;
  }
  
  .verify-progress-labels {
    font-size: 10px;
  }
  
  .verify-step {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  
  .verify-face-outline {
    width: 150px;
    height: 180px;
  }
}

@media (max-width: 480px) {
  .verify-container {
    padding: 16px;
  }
  
  .verify-instructions,
  .verify-verification-details,
  .verify-error-suggestions {
    padding: 16px;
  }
  
  .verify-camera-video {
    border-width: 2px;
  }
  
  .verify-captured-photo img {
    border-width: 2px;
  }
}